using UnityEngine;
using System.Collections;

public class Credits : MonoBehaviour {

    public Texture texture;

    int buttonWitdh = 200;
    int buttonHeight = 50;

    public Texture2D buttonBack;

	void Start () {	
	}
	
	void Update () {	
	}

    void OnGUI()
    {
        GUI.DrawTexture(new Rect(0.0f,
                0.0f,
                texture.width * Screen.width / 960.0f,
                texture.height * Screen.height / 512.0f), texture);
        
        if (GUI.Button(new Rect(720,450, buttonWitdh, buttonHeight),
            buttonBack, GUIStyle.none))
        {
            Application.LoadLevel("02_Menu");
        }		
    }
}
